import { httpInstance } from '@/utils/request'

interface SubmitUserFormAPIData {
  type?: string
  project_type_id?: string
  contact_name?: string
  contact_mobile: string
  extent_id: string
  province?: string
  city?: string
  district?: string
}

export function submitUserFormAPI(data: SubmitUserFormAPIData, token: string) {
  return httpInstance.post<
    Record<string, any>,
    SubmitUserFormAPIData
  >('api/Case_project/userSubmit', data, { headers: { token } })
}
